package com.usercar.feign;


import com.dk.bean.Result;
import com.usercar.pojo.ContentDTO;
import com.usercar.pojo.ContentPayDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("springcloud-entry-service-lxd")
public interface EntryFeign {

    @PostMapping("/content")
    Result insert(@RequestBody ContentDTO contentDTO);

    @PostMapping("/contentPay")
    Result insertInfo(@RequestBody ContentPayDTO contentPay);

    @PutMapping("/{out_trade_no}")
    Result updateByout_trade_no(@PathVariable("out_trade_no")String out_trade_no);
}
